package twoD.IsoPfem;

//import inf.text.ArrayFormat;

public class Constraint {
	private boolean[] free_;

	public Constraint(boolean... u) {
		free_ = new boolean[u.length];
		for (int i = 0; i < u.length; i++)
			this.free_[i] = u[i];
	}

	public boolean isFree(int c) {
		return this.free_[c];
	}

	public int getLength() {
		return free_.length;
	}

	public void print() {
		for (int i = 0; i < free_.length; i++)
			if (this.free_[i])
				System.out.print("free\t");
			else
				System.out.print("fixed\t");
		System.out.println();
	}
}
